package src.dual_pointers;

import java.util.Stack;

/**
 * @author starsea
 * @date 2024-09-09 23:19
 */

public class Test16 {
    public static void main(String[] args) {
        String s = "3 * 6+5/2 +1 ";
       // calculate(s);

    }


    public static int sum(int nums1, int nums2, char ch) {
        switch (ch) {
            case '+':
                return nums1 + nums2;
            case '-':
                return nums2 - nums1;
            case '/':
                return nums2 / nums1;
            case '*':
                return nums1 * nums2;
        }
        return 0;
    }

    public static boolean isNum(char ch) {
        if (ch >= '0' && ch <= '9') {
            return true;
        }
        return false;
    }
}
